package com.hongxun.design.bean.service;

import com.hongxun.design.bean.ProjectItemBean;
import com.hongxun.design.mytools.MString;

/**
 * Created by zerdoor_pc on 2016/5/30.
 */
public class ProjectToIOSBean {

    public Integer project_id;
    public Integer stage_id;
    public String project_name = "";
    public String stage_name = "";
    public double lng;
    public double lat;
    public String thumb = "";
    public String flag = "on";
    public String uuid = "";
    public int project_type;
    public int stage;
    public int schedule;
    public int is_exp;
    public int is_finish;
    public long create_time;
    public long codeset_version_id;
    public String manager = "";
    public String explorationer = "";
    public String designer = "";
    public String auditor = "";
    public String cost_center = "";
    public void setBean(ProjectItemBean bean) {

        try {
            if (bean.getProject_id().length() > 0&&!bean.getProject_id().equals(MString.code_zero)) {
                project_id = Integer.parseInt(bean.getProject_id());
            }else{
                project_id=null ;
            }
        } catch (Exception e) {
        }
        try {
            if (bean.getStage_id().length() > 0&&!bean.getStage_id().equals(MString.code_zero)) {
                stage_id = Integer.parseInt(bean.getStage_id());
            }else{
                stage_id=null;
            }
        } catch (Exception e) {
        }
        try {
            project_name = bean.getProject_name();
        } catch (Exception e) {
        }
        try {
            stage_name = bean.getStage_name();
        } catch (Exception e) {
        }
        try {
            lng = Double.parseDouble(bean.getLng());
        } catch (Exception e) {
        }
        try {
            lat = Double.parseDouble(bean.getLat());
        } catch (Exception e) {
        }
        try {
            project_type = Integer.parseInt(bean.getProject_type());
        } catch (Exception e) {
        }
        try {
            stage = Integer.parseInt(bean.getStage());
        } catch (Exception e) {
        }
        try {
            schedule = Integer.parseInt(bean.getCurrent_schedule());
        } catch (Exception e) {
        }
        try {
            is_exp = Integer.parseInt(bean.getIs_exp());
        } catch (Exception e) {
        }
        try {
            is_finish = Integer.parseInt(bean.getIs_finish());
        } catch (Exception e) {
        }
        try {
            create_time = Long.parseLong(bean.getCreate_time());
        } catch (Exception e) {
        }
        try {
            codeset_version_id = Long.parseLong(bean.getCodeset_version_id());
        } catch (Exception e) {
        }
        try {
            thumb = bean.getThumb();
        } catch (Exception e) {
        }
        try {
            flag = bean.getFlag();
        } catch (Exception e) {
        }
        try {
            uuid = bean.getUUID();
        } catch (Exception e) {
        }try {
            manager = bean.getManager();
        } catch (Exception e) {
        }try {
            explorationer = bean.getExplorationer();
        } catch (Exception e) {
        }try {
            designer = bean.getDesigner();
        } catch (Exception e) {
        }try {
            auditor = bean.getAuditor();
        } catch (Exception e) {
        }try {
            cost_center = bean.getCost_center();
        } catch (Exception e) {
        }



    }

    public String getCost_center() {
        return cost_center;
    }

    public void setCost_center(String cost_center) {
        this.cost_center = cost_center;
    }

    @Override
    public String toString() {
        return super.toString();
    }


    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getExplorationer() {
        return explorationer;
    }

    public void setExplorationer(String explorationer) {
        this.explorationer = explorationer;
    }

    public String getDesigner() {
        return designer;
    }

    public void setDesigner(String designer) {
        this.designer = designer;
    }

    public String getAuditor() {
        return auditor;
    }

    public void setAuditor(String auditor) {
        this.auditor = auditor;
    }

    public String getUUID() {
        return uuid;
    }

    public void setUUID(String uuid) {
        this.uuid = uuid;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public int getProject_id() {
        return project_id;
    }

    public void setProject_id(int project_id) {
        this.project_id = project_id;
    }

    public int getStage_id() {
        return stage_id;
    }

    public void setStage_id(int stage_id) {
        this.stage_id = stage_id;
    }

    public String getProject_name() {
        return project_name;
    }

    public void setProject_name(String project_name) {
        this.project_name = project_name;
    }

    public String getStage_name() {
        return stage_name;
    }

    public void setStage_name(String stage_name) {
        this.stage_name = stage_name;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public int getProject_type() {
        return project_type;
    }

    public void setProject_type(int project_type) {
        this.project_type = project_type;
    }

    public int getStage() {
        return stage;
    }

    public void setStage(int stage) {
        this.stage = stage;
    }

    public int getSchedule() {
        return schedule;
    }

    public void setSchedule(int schedule) {
        this.schedule = schedule;
    }

    public int getIs_exp() {
        return is_exp;
    }

    public void setIs_exp(int is_exp) {
        this.is_exp = is_exp;
    }

    public int getIs_finish() {
        return is_finish;
    }

    public void setIs_finish(int is_finish) {
        this.is_finish = is_finish;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public long getCodeset_version_id() {
        return codeset_version_id;
    }

    public void setCodeset_version_id(long codeset_version_id) {
        this.codeset_version_id = codeset_version_id;
    }
}
